package com.example.iot.ts;

import com.example.iot.entity.id.EntityId;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.UUID;
import java.util.function.BiConsumer;

/**
 * 时序数据订阅信息
 * @author ChenXiangpeng
 */
@Data
@AllArgsConstructor
public class TimeSeriesSubscriptionInfo<T> {
    private final String sessionId;
    private final EntityId entityId;
    private final BiConsumer<String, T> updateConsumer;

    public static void main(String[] args) {
        System.out.println(UUID.randomUUID());
    }
}
